#include<stdio.h>
int main(void)
{
    char sign;
    sign=getchar();

    if(sign>='0'&&sign<='9'){
        printf("This is a digit.");
    }else if(sign>='A'&&sign<='Z'){
        printf("This is a capital letter.");
    }else if(sign>='a'&&sign<='z'){
        printf("This is a small letter.");
    }else
    printf("Other character.");

    return 0;


}